package persistence

import (
	"gorm.io/gorm"
	"ruoyi/domain/repository"
	"ruoyi/infrastructure/persistence/monitorRepo"
)

type MonitorRepositories struct {
	Service   repository.ServiceRepository
	Operation repository.SysOperationLogRepository
	Job       repository.SysJobRepository
}

func NewMonitorRepositories(MysqlDb *gorm.DB) (*MonitorRepositories, error) {

	return &MonitorRepositories{
		Service:   monitorRepo.ServiceRepository(MysqlDb),
		Operation: monitorRepo.SysOperationLogRepository(MysqlDb),
		Job:       monitorRepo.SysJobRepository(MysqlDb),
	}, nil
}
